All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface quicktime.app.players.Playable

public interface Playable
extends Timeable
This interface defines a protocol for dealing with time based media. It allows you to get the duration, set/get the current time position of playback of the media, retrieve the time scale (how many ticks per second) of the media and set/get the playback rate.


Variable Index

 o kDurationUnknown

Method Index

 o getDuration()
Returns the duration of the media attached to the player.
 o getScale()
Returns the time scale of the player - how many ticks per second.
 o getTime()
Returns the current time value of the object.
 o setTime(int)
Sets the player to the time specified.

Variables

 o kDurationUnknown
 public static final int kDurationUnknown

Methods

 o setTime
 public abstract void setTime(int time) throws QTException
Sets the player to the time specified. This time value at this level is a totally arbitrary value - what time that means in "real time" is determined by the implementor of the interface, typically the scale value will determine what a "real" time of 1 second is.

Parameters:
time - the new time value
 o getTime
 public abstract int getTime() throws QTException
Returns the current time value of the object.

Returns:
the current time.
 o getScale
 public abstract int getScale() throws QTException
Returns the time scale of the player - how many ticks per second.

Returns:
the current scale.
 o getDuration
 public abstract int getDuration() throws QTException
Returns the duration of the media attached to the player. If the player has no media, or does not know the duration of its media it can return the constant kDurationUnknown.

Returns:
the media duration.

All Packages  Class Hierarchy  This Package  Previous  Next  Index